package test;

import static org.junit.Assert.*;

import main.Brute;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

public class BruteShould {
	
	/*
	 * 
Contents of grid4x4.txt
	25
    0     0
    0   5000
    0  10000
    0  15000
    0  20000
 5000      0
 5000   5000
 5000  10000
 5000  15000
 5000  20000
10000      0
10000   5000
10000  10000
10000  15000
10000  20000
15000      0
15000   5000
15000  10000
15000  15000
15000  20000
20000      0
20000   5000
20000  10000
20000  15000
20000  20000
	 */
	
	Brute brute;

	@Before
	public void setUp() throws Exception {
		brute = new Brute();
		String filename = "collinear/grid4x4.txt";
		brute.readPointsFromFile(filename);
	}
	
	@Test
	public void readPointsTextFileAndMapToAnArrayList() {
//		assertEquals(0, brute.pointsList.get(1).x);
//		assertEquals(5000, brute.pointsList.get(1).y);
	}
	
	@Test
	public void checkIfThreePointsAreCollinear() {
//		assertEquals(false, brute.checkCollinear(brute.pointsList.get(0),
//													brute.pointsList.get(1),
//													brute.pointsList.get(5)));
//		assertEquals(true, brute.checkCollinear(brute.pointsList.get(5),
//													brute.pointsList.get(10),
//													brute.pointsList.get(15)));
	}
	
	@Test
	public void checkIfFourPointsAreCollinear() {
		
	}
	
	
	
	
	
	@After
	public void tearDown() throws Exception {
	}

}
